﻿using System;

#if WINDOWS_PHONE
namespace Fibre.WP7.Threading
#else
#if SILVERLIGHT
namespace Fibre.Silverlight.Threading
#else
namespace Fibre.Threading
#endif
#endif
{
    public delegate void BusyChangedEventHandler(object sender, BusyChangedEventArgs args);

    public class BusyChangedEventArgs : EventArgs
    {
        private readonly bool _isBusy;

        public BusyChangedEventArgs(bool isBusy)
        {
            _isBusy = isBusy;
        }

        public bool IsBusy
        {
            get { return _isBusy; }
        }
    }
}